<?php
use Swoole\Table;

$table = new swoole_table(512);

$table->column('id',Table::TYPE_INT,4);
$table->column('name',Table::TYPE_STRING,8);
$table->column('pwd',Table::TYPE_STRING,8);
$table->create();

$table->set('key1',['id'=>1,'name'=>'test1','pwd'=>'123456']);
$table->set('key2',['id'=>2,'name'=>'test2','pwd'=>'654321']);

print_r($table->get('key2'));